package cn.juque.systemservice.mapper;

import cn.juque.systemservice.entity.EmployeeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>员工信息</li>
 * </ul>
 * @date 2022-11-03 11:58:48
 **/
@Mapper
public interface EmployeeInfoMapper extends BaseMapper<EmployeeInfo> {

    /**
     * 分页查询
     *
     * @param page         : page
     * @param employeeInfo : employeeInfo
     * @return List<EmployeeInfo>
     */
    List<EmployeeInfo> queryInfoList(Page<EmployeeInfo> page, @Param("ew") EmployeeInfo employeeInfo);

    /**
     * 查询
     *
     * @param employeeInfo : employeeInfo
     * @return List<EmployeeInfo>
     */
    List<EmployeeInfo> queryInfoList(@Param("ew") EmployeeInfo employeeInfo);

    /**
     * 邮箱号查询员工信息
     *
     * @param mail 邮箱号
     * @return EmployeeInfo
     */
    EmployeeInfo queryInfoByMail(@Param("mail") String mail);

    /**
     * 手机号查询员工信息
     *
     * @param tel 手机号
     * @return EmployeeInfo
     */
    EmployeeInfo queryInfoByTel(@Param("tel") String tel);

    /**
     * 根据员工ID列表查询
     *
     * @param userIdList 员工ID列表
     * @return list
     */
    List<EmployeeInfo> queryInfoByUserId(@Param("userIdList") List<String> userIdList);
}
